package com.njtoyo.taxi.admin.rest.wrapper.open.simple_call;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@ApiModel("新增电召记录")
public class CreateSimpleCallWrapper {

    @ApiModelProperty("手机号码")
    @NotBlank(message = "手机号码不能为空")
    @Pattern(regexp = "^1\\d{10}$", message = "手机号码格式不准确")
    private String mobileNumber;

    @ApiModelProperty("被叫号码")
    @NotBlank(message = "被叫号码不能为空")
    private String calledNumber;

    @ApiModelProperty("语音文件地址")
    @NotBlank(message = "语音文件不能为空")
    private String audioUrl;
}
